package com.itheima.volatiledemo;

public class MyThread1 extends  Thread {

    @Override
    public void run() {
        synchronized (Money.obj) {
            while(Money.money == 100000){
                System.out.println("看看我执行了吗");
            }

            System.out.println("结婚基金已经不是十万了");
        }
    }
}
